package org.hongqi.common.senpec.sys.operate;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.hongqi.common.senpec.base.mybatisplus.IBaseController;
import org.hongqi.common.senpec.base.sevlet.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/operates")
@RequiredArgsConstructor
public class OperateController implements IBaseController<Operate> {

    private final OperateService operateService;

    @Override
    public Result<Operate> save(Operate entity) {
        return operateService.mySave(entity);
    }

    @Override
    public Result<?> removeById(Long id) {
        return null;
    }

    @Override
    public Result<Operate> updateById(Operate entity) {
        return null;
    }

    @Override
    public Result<Operate> getById(Long id) {
        return null;
    }

    @Override
    public Result<IPage<Operate>> listObjsWithPage(Operate entity) {
        return operateService.myListObjsWithPage(entity);
    }
}
